package com.yoooya.base.third.model.vo.cp.messagebuilder;


import com.yoooya.base.third.common.WxConsts;
import com.yoooya.base.third.model.vo.cp.WxCpMessage;

/**
 * 获得消息builder
 * 
 * <pre>
 * 用法: WxCustomMessage m = WxCustomMessage.IMAGE().mediaId(...).toUser(...).build();
 * </pre>
 * 
 * @创建人 Sun Yijing
 * @创建时间 2018-07-08
 */
public final class ImageBuilder extends BaseBuilder<ImageBuilder> {
	private String mediaId;

	public ImageBuilder() {
		this.msgType = WxConsts.CUSTOM_MSG_IMAGE;
	}

	public ImageBuilder mediaId(String media_id) {
		this.mediaId = media_id;
		return this;
	}

	public WxCpMessage build() {
		WxCpMessage m = super.build();
		m.setMediaid(this.mediaId);
		return m;
	}
}
